﻿@using MobileDesigner.App_Code
@if (Request.IsAuthenticated) {
    <nav>
        <ul id="menu">
            <li>@Html.ActionLink("Управление", "Manage", "PrivateCabinet")</li>
            <li>@Html.ActionLink("Учетные записи", "Accounts", "Admin").If(User.IsInRole("Administrator"))</li>
            <li>@Html.ActionLink("Клиенты", "ListClients", "Clients").If(User, new List<string> { "Administrator", "Partner's Manager", "Partner", "Manager", "Regional Manager" })</li>
            <li>@Html.ActionLink("Сотрудники", "ListSubordinates", "Subordinates").If(User, new List<string> { "Administrator", "Partner", "Manager", "Regional Manager" })</li>
            <li>@Html.ActionLink("Проекты", "Index", "Project").If(User, new List<string> { "Administrator", "Partner", "Manager", "Regional Manager" })</li>
        </ul>
    </nav>
}